package com.kitchen.ui.dialog.words
{
	import flash.display.Shape;

	internal class NoteBack extends Shape
	{	
		public function NoteBack(rh:Number, rw:Number, rs:int, lineStyle:int)
		{
			super();
			this.layout(rh,rw,rs,lineStyle);
		}
		
		private function layout(rh:Number, rw:Number, rs:int, lineStyle:int):void{
			if(lineStyle == 1){
				this.graphics.lineStyle(1, 0xdcd8cf, 1);
			}else if(lineStyle == 2){
				
			}
			var ry:Number = 0;
			for(var i:int=0; i<rs; i++){
				ry = (i+1)*rh;
				this.graphics.moveTo(0, ry);
				this.graphics.lineTo(rw, ry);
			}
			this.graphics.endFill();
		}
	}
}